package com.niiwoo.civet.scheduler.trigger;

import com.alibaba.dubbo.config.annotation.Reference;
import com.niiwoo.civet.trade.service.loan.SpeedLoanDubboService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 融360标的补偿调用天称信审要点
 * @author: liaozuliang
 * @date: 2018/12/25
 */
@Slf4j
@Component
public class R360RecallAutoAuditModelJobTrigger {

    @Reference(version = "1.0.0")
    private SpeedLoanDubboService speedLoanDubboService;

    @Scheduled(cron = "${r360.recall-auto-audit-model:0 */30 * * * ?}")
    public void r360RecallAutoAuditModelJob(){
        log.info("==========r360RecallAutoAuditModelJob invoke start ==========");
        speedLoanDubboService.r360RecallAutoAuditModelJob();
        log.info("==========r360RecallAutoAuditModelJob invoke end==========");
    }
}
